package com.shycloud.mido.homework.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

@Data
@ApiModel("每天练琴时长")
public class WeekDataDto implements Serializable {

	@ApiModelProperty("星期")
	private String week;
	@ApiModelProperty("日期")
	private String playDate;
	/** 练琴时长 */
	@ApiModelProperty("练琴时长")
	private Double playTime = 0d;

	public Double getPlayTime() {
		if ("Infinity".equals(String.valueOf(this.playTime))) {
			return 0d;
		} else {
			return this.playTime;
		}
	}

}
